package study.spring.mvc.customContainerInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

public class HandledInterfaceImpl implements HandledInterface {

  @Override
  public void onStartup(ServletContext servletContext) throws ServletException {
// todo
// Load Spring web application configuration
//     AnnotationConfigWebApplicationContext ac = new AnnotationConfigWebApplicationContext();
//     ac.register(AppConfig.class);
//     ac.refresh();
//
//     // Create and register the DispatcherServlet
//     DispatcherServlet servlet = new DispatcherServlet(ac);
//     ServletRegistration.Dynamic registration = servletContext.addServlet("app", servlet);
//     registration.setLoadOnStartup(1);
//     registration.addMapping("/*");
  }
}
